﻿<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>一人一本 - 试过才知道</title>
	
    <link href="css/productlist.css" rel="stylesheet">
    <link href="css/inspiritas.css" rel="stylesheet">
    <link href="css/carousel.css" rel="stylesheet">
    <script src="js/jquery-1.7.1.min.js"></script>
    <script src="js/jquery.form.js"></script>
    <script src="js/jquery.json-2.4.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script>
        $(document).ready(
		function () {
		    typeListClick();
			
<?php include "htm/ready.htm";?>
		}
	);

        function typeListClick() {
            $('#type-list').children(':not(".divider,h2")').click(function () {
                $(this).addClass('active');
                $(this).siblings().removeClass('active');
            });
        }
    </script>
</head>
<body>

<?php include "htm/head.htm";?>
<div class="row-fluid">
	<div class="span3"></div>
 	<div class="span5">
                <form accept-charset="UTF-8" action="index.php?act=customer.register" class="form-horizontal" id="user_register" method="post" onsubmit="return userRegister();">
				<fieldset>
					<legend>注册新用户</legend>
					<div class="control-group required"><label class="required control-label" for="user_name"><abbr title="required">*</abbr> 姓名</label><div class="controls"><input class="string required" id="user_name" name="user[name]" placeholder="姓名" size="50" style="height:30px;" ></div></div>
					<div class="control-group email required"><label class="email required control-label" for="user_email"><abbr title="required">*</abbr> Email</label><div class="controls"><input class="string email required" id="user_email" name="user[email]" placeholder="uname@yourcompany.com" size="50" style="height:30px;" type="email" ></div></div>
					<div class="control-group password optional"><label class="password optional control-label" for="user_password">密码</label><div class="controls"><input class="password optional" id="user_password" name="user[password]" size="50" style="height:30px;"  type="password"></div></div>
					<div class="control-group password optional"><label class="password optional control-label" for="user_password_confirmation">确认密码</label><div class="controls"><input class="password optional" id="user_password_confirmation" name="user[password_confirmation]"  size="50" style="height:30px;"  type="password"></div></div>
					<div class="required"><label class="required control-label" for="validate_input"><abbr title="required">*</abbr>验证码</label><div class="controls"><input type="text" id="validate_input" name="verify" placeholder="验证码" size="50" style="height:30px;"><img style="cursor:pointer" title="刷新验证码" id="refresh" border='0' src='index.php?act=validatecode.generate_validate_code' onclick="document.getElementById('refresh').src='index.php?act=validatecode.generate_validate_code'"/></div></div> 
					<div class="form-actions">
						<input class="btn btn-primary" data-disable-with="正在提交" name="commit" type="submit" value="提交注册信息">
					</div>
				</fieldset>
				</form>
	</div>
	<div class="span2 delete-side ">
			<h6 class="sidebar-title">已经有帐号了？</h6>
			<ul class="cnt">
				<a href="forgetpassword.php">忘记了密码?</a><br>
			</ul>	
	</div>
	<div class="span1"></div>
	</div>
</div>
<?php include "htm/footer.htm";?>
<?php include "htm/copyright.htm";?>
    <script>
		function userRegister() {
			$("#user_register").ajaxSubmit(function(message) {
				var obj = $.evalJSON(message);
				if(obj.success)
					{
					alert("注册成功，请到注册邮箱收取激活邮件");
					location.reload();
					}
				else
					{
					alert(obj.msg);
					}
			});
	
			return false;
		}
    </script>
</body>
</html>
